/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Server.domain;

import java.awt.Color;

/**
 *
 * @author Ripper
 */
public class DecorativeElement implements WorldOccupant
{
    private double x;
    private double y;
    
    private int hitboxradius;
    
    private int lookID;
    private int id;
    
    private Color[] colors;
    
    public DecorativeElement(int xx, int yy, int radius, int ID, int visual_id, Color[] cols)
    {
        x = xx;
        y = yy;
        hitboxradius = radius;
        lookID = visual_id;
        id = ID;
        colors = cols;
    }
    
    public String getNecessaryInformation()
    {
        String data = ""+id+","+lookID+","+x+","+y;
        
        for(Color c: colors)
        {
            data += ","+c.getRed()+"="+c.getGreen()+"="+c.getBlue();
        }
        
        return data;
    }

    public Color[] getColors() {
        return colors;
    }

    public void setColors(Color[] colors) {
        this.colors = colors;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getLookID() {
        return lookID;
    }

    public void setLookID(int lookID) {
        this.lookID = lookID;
    }

    @Override
    public int getHitboxradius() {
        return hitboxradius;
    }

    @Override
    public void setHitboxradius(int hitboxradius) {
        this.hitboxradius = hitboxradius;
    }

    @Override
    public double getX() {
        return x;
    }

    @Override
    public void setX(double x) {
        this.x = x;
    }

    @Override
    public double getY() {
        return y;
    }

    @Override
    public void setY(double y) {
        this.y = y;
    }
    
    
}
